package com.flash.GlobalManagement.util;

public class TableNameUtil {
    public static final String B="broker";
    public static final String S="dealSeat";
    public static final String P="plate";
    public static final String C="cash";
    public static final String DD="dealData";
    public static final String M="marketData";
    public static final String SA="securityAccrued";
    public static final String CA="cashAccrued";
    public static final String FA="fundsAllot";
    public static final String TA="TA";
    public static final String SS="securityStock";
    public static final String CS="cashStock";
    public static final String SAS="securityAccrualStock";
    public static final String CAS="cashAccrualStock";
    public static final String TAS="TAStock";

    public static String getTableName(String tableName){
        String name = "";
        switch (tableName){
            case B:
                name ="A";
                break;
            case S:
                name ="S";
                break;
            case P:
                name ="P";
                break;
            case C:
                name ="C";
                break;
            case DD:
                name ="DD";
                break;
            case M:
                name ="M";
                break;
            case SA:
                name ="SA";
                break;
            case CA:
                name ="CA";
                break;
            case FA:
                name ="FA";
                break;
            case TA:
                name ="TA";
                break;
            case SS:
                name ="SS";
                break;
            case CS:
                name ="CS";
                break;
            case SAS:
                name ="SAS";
                break;
            case CAS:
                name ="CAS";
                break;
            case TAS:
                name ="TAS";
                break;
        }
        return name;
    }

    public static void main(String[] args) {
        String m = TableNameUtil.getTableName("cashStock");
        System.out.println(m);
    }
}
